<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>行内块元素中间有缝隙</title>
    <style>
        .hnk {
            width: 300px;
            height: 200px;
            background-color: pink;
            display: inline-block;
        }

        .float {
            width: 300px;
            height: 200px;
            background-color: rgb(14, 243, 239);
            float: left;
        }

        .top,
        .bot {
            margin-top: 10px;
        }
    </style>
</head>

<body>
    标准流
    <div class="top">
        <div class="hnk">1</div>
        <div class="hnk">2</div>
        <div class="hnk">3</div>
    </div>
    对比
    浮动(float)
    <div class="bot">
        <div class="float">1</div>
        <div class="float">2</div>
        <div class="float">3</div>
    </div>

</body>

</html>